#include <stdio.h>
#include <string.h>

#include "sort.h"

#define NUM  20

void main()
{ // 63  76  23  33  96  98  66  96
	int A[NUM];// = {63, 76, 23, 33, 96, 98, 66, 96};
	int B[NUM];
	GenerateData(A, NUM, 100);
	memcpy(B, A, sizeof(A));
	Print(B, NUM);
	InsertionSort(B, NUM);
	Print(B, NUM);

	memcpy(B, A, sizeof(A));
	BubbleSort(B, NUM);
	Print(B, NUM);

	memcpy(B, A, sizeof(A));
	QuickSort(B,0, NUM-1);
	Print(B, NUM);

	memcpy(B, A, sizeof(A));
	SelectionSort(B,NUM);
	Print(B, NUM);

	memcpy(B, A, sizeof(A));
	HeapSort(B,NUM);
	Print(B, NUM);

	memcpy(B, A, sizeof(A));
	MergeSort(B,0, NUM-1);
	Print(B, NUM);
}